﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IService;
using System.Reflection;

namespace ConsoleApplication2
{
    public class testc 
{
        public string tt;
}


    class Program
    {

     


        static void Main(string[] args)
        {
           

            //object ttt = new testc() ;

            //Func<object, string> dd = (tt) =>
            //    {
            //        tt = "aaaa";
            //        return "";
            //    };
            //dd(ttt);

            //var ddd = ttt;
    
            //return;
            //for (; ; )
            //{
            //    Action showMethod = () =>
            //   {
            //       string ddd = yq.Enums.ArticleContent.Type.Photo.ExtName();
            //   };


            //    cn.Util.CodeTime.RunTime(showMethod, 2, "TEST");

            //    string ddd1 = yq.Enums.ArticleContent.Type.Photo.ExtName();
            //    Console.Read();
            //}
         

            //return;

            //Assembly assembly = Assembly.LoadFrom(@"yq.Controller.dll");
            //Type[] ts = assembly.GetTypes();
            //foreach (Type t in ts)
            //{
            //    MethodInfo[] methodInfo = t.GetMethods();

            //    if (t.ToString().StartsWith("yq.Controller.") && t.ToString().EndsWith("Controller"))
            //    {
            //        Console.WriteLine(t);
            //    }
            //    else
            //    {
            //        continue;
            //    }

            //    foreach (MethodInfo mi in methodInfo)
            //    {
            //        if (mi.ToString().StartsWith("System.Web.Mvc.ActionResult"))
            //        {
            //            Console.WriteLine(mi);
            //        }
            //    }
            //}

            //Console.Read();
            //return;

            ITest TEST = yq.GetService.Create<yq.IService.ITest>();

            int D = TEST.sum(3);
            ////ITest TEST = cn.Wcf.Create<yq.IService.ITest>("http://localhost/WcfService/yq.IService.ITest.svc");
            //int D = TEST.sum(3);
            //int D1 = yq.GetService.Create<yq.IService.ITest>().sum(3);
            //Console.Write(D + "");
            //Console.Read();
        }
    }
}
